import { ref, onMounted } from "vue";
import { getBannerAPI } from "@/apis/banner";
const bannerList = ref([]);
export function useBanner() {
    async function getBannerList() {
        const ref = await getBannerAPI({ type: "2" });
        bannerList.value = ref.result;
    }
    onMounted(() => {
        getBannerList()
    })
    return bannerList;
}